package com.zzc.mapper;

import com.zzc.pojo.UserToken;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserTokenMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserToken record);

    int insertSelective(UserToken record);

    UserToken selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserToken record);

    int updateByPrimaryKey(UserToken record);

    /**
     * 查询全部Token信息
     * @param accessToken
     * @return
     */
    List<UserToken> getTokenList(@Param("token") String accessToken);
}